import { redirect, img, getToken } from '@/utils/common';
export function useGoods(params: any = {}) {

	// 错误图片展示
	const errorImgFn = (data: any, type: any) => {
		data[type] = '';
	}
	const debtIcon = "https://files.meton.vip/508afc8ab7c20f9d62630e1a8107e58d51ee469c78620f04a9b4a4472bc9c354.png" //有欠款
	const tobeactivedIcon = "https://files.meton.vip/5a1e7e36950bd05f3ce3a5e7d2e2b2284ce34f9032344dfcfe38d21e083da268.png" //待激活
	const makeoverIcon = "https://files.meton.vip/3f4209de13968bd35cccb866fdefac16dfb16d182d0bc52176ee9ac11f11a21c.png" //已转卡
	const overdueIcon = "https://files.meton.vip/2ec4882432250a803ceb4e7cbb4a41538a618cfa2d4e40ee10dc78720633531f.png" //已过期
	const refundIcon = "https://files.meton.vip/82d9e8c2bd332243ee50a4b7c9a12381234b04cf1438be4942727f46adddb2aa.png" //已退款
	const stopusingIcon = "https://files.meton.vip/4c663ae58df3ea07df81a15d1544345b2c0b12a5c8ef280af19739a41a206bf0.png" //已停卡
	const tradeInIcon = "https://files.meton.vip/6f7c80836daa274c00300843044bc9465fb7393015bfa9f11e74465ffaa55a4e.png" //已换购
	const usupIcon = "https://files.meton.vip/6f7c80836daa274c00300843044bc9465fb7393015bfa9f11e74465ffaa55a4e.png" //已用尽
	const zhuanrangIcon = "https://files.meton.vip/0bd317869b2df4c493dd6823e3d2e53b54a259e9796286daafdf382b7672238a.png" //已转让
	const inRefundIcon = "https://files.meton.vip/8ab1cd6e9f8a75e0f690acb7e6905984b71675f9e079314d3006619c96571825.png" //退款中

	return {

		error: errorImgFn,
		inRefundIcon,
		zhuanrangIcon,
		usupIcon,
		tradeInIcon,
		stopusingIcon,
		refundIcon,
		overdueIcon,
		makeoverIcon,
		tobeactivedIcon,
		debtIcon

	}
}
